package com.app.exception;

/**
 * @author ZhengJunJie
 * @date 2019/12/31 18:45
 */
public class SystemException extends RuntimeException {
    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * 服务器状态码
     */
    private String code;

    public SystemException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
    }

    public SystemException(String code, String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
        this.code = code;
    }


    public String getErrorMsg() {
        return errorMsg;
    }

    public String getCode() {
        return code;
    }
}